package face.pay.web.com.statistics.controller;

import face.pay.system.annotation.CurrentUser;
import face.pay.entity.UserInfo;
import face.pay.util.ResultMessage;
import face.pay.web.com.statistics.service.IuserStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


@Controller
@RequestMapping("/user_satistics")
public class UserStatisticsController {

    @Autowired
    private IuserStatisticsService iuserStatisticsService;


    /**
     *
     * @param loginUser
     * @return 交易量 分佣 奖励
     */
    @PostMapping("/total")
    @ResponseBody
    public ResultMessage enterpriseStatistics(@CurrentUser UserInfo loginUser,@RequestParam Map params){

        return  this.iuserStatisticsService.statistics(loginUser,params);
    }

}
